widget: Don't assume opacity is 100%
authorBenjamin Otte <otte@redhat.com>
Sat, 6 Sep 2014 04:41:05 +0000 (06:41 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 6 Sep 2014 23:57:10 +0000 (01:57 +0200)
commit9a8a4a8b1479d004d1fb65a9ac6714318129bdad
tree6c2a7e741eaa589f23bd506b2a5c9f75179cebe5
parent95959ef470e00e0f0c2f6a3684c3693cd0fb3df3
widget: Don't assume opacity is 100%

... just because there is no style context instantiated yet. Instead,
instantiate a style context during realize() and ask it.

Fixes problems with dim labels not being dimmed on first show.

Testcase included.

https://bugzilla.gnome.org/show_bug.cgi?id=735240
gtk/gtkwidget.c
testsuite/reftests/Makefile.am
testsuite/reftests/opacity-initial.css [new file with mode: 0644]
testsuite/reftests/opacity-initial.ref.ui [new file with mode: 0644]
testsuite/reftests/opacity-initial.ui [new file with mode: 0644]